﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="service_wyzs.aspx.cs" Inherits="service_wyzs" %>

<%@ Register Src="uc/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="uc/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/service.css" rel="stylesheet" type="text/css" />
    <link href="css/jquery-ui-1.7.3.custom.css" rel="stylesheet" type="text/css" />
    <script src="http://i.ymcps.com/images/float/floatS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" /><br />
    <div class="channelLayout">
        <!------ 客服专区 频道导航 start ------>
        <div class="topLine">
        </div>
        <div class="service_title service_bg">
        </div>
        <div class="channelNavBg">
            <div class="hqzx_nav_tb">
                <ul>
                    <li><a href="Default.aspx" class="b">客服首页</a></li>
                    <li><a href="service_video.aspx" class="b">培训视频</a></li>
                    <li><a href="servicehelp/index.aspx" target="_blank" class="b">帮助中心</a></li>
                    <li class="hqzx_nav_cur service_bg">自助服务</li>
                    <li><a href="service_feedback.aspx" class="b">意见反馈</a></li>
                    <li><a href="training.aspx" class="b">各地公告</a></li>
                    <li><a href="training1.aspx" class="b">会场预约</a></li> 
                    <li><a href="service_map1.aspx" class="b">全国服务商</a></li>
                </ul>
            </div>
        </div>
        <!------ 客服专区 频道导航 end ------>
    </div>
    <div class="clearok">
    </div>
    <!------ 自助服务 start ------>
    <div class="service_self1 marginTop10 font14 font-weight">
        <img src="images/index_ico2.gif" class="img" />自助服务&nbsp;
        <a href="http://kefu.emoney.cn/servicehelp/detail2.aspx?infoid=323" 
            target="_blank" style="font-weight:normal;color:Blue">如何使用?</a>
    </div>
    <div class="clearok">
    </div>
    <!------ 我要折算 start ------>
    <input id="hidName" type="hidden" runat="server" value="" /><input id="hidPwd" type="hidden"
        runat="server" />
    <div class="self_c marginTop10" id="divwyzs">
        <div class="self_c_l" style="height:380px;">
        <div class="self_login" id="login" att="ulogin">
               </div>
            <ul>
                <li att="ulogin"><a id="qkcl">清空处理</a><div class="self_ico">
                    <img src="images/ico_self1.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_xgmm.aspx">修改密码</a><div class="self_ico">
                    <img src="images/ico_self3.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_dqrcx.aspx">到期日查询</a><div class="self_ico">
                    <img src="images/ico_self4.gif" /></div>
                </li>
                <li><a href="service_rjcz.aspx">软件充值</a><div class="self_ico">
                    <img src="images/ico_self5.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wsjf.aspx">网上积分</a><div class="self_ico">
                    <img src="images/ico_self6.gif" /></div>
                </li>
                <li att="ulogin" class="current">我要折算<div class="self_ico">
                    <img src="images/ico_self7.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_mmbh.aspx">密码保护</a><div class="self_ico">
                    <img src="images/ico_self8.gif" /></div>
                </li>
                <li att="ulogin"><a id="opendog" style="cursor:hand" href="javascript:void(0)">精灵狗</a><div class="self_ico">
                    <img src="images/smalldog.jpg" style="height: 17px; width: 15px" /></div></li>
            </ul>
        </div>
        <div class="self_c_r" style="height:378px;">
            <div class="self_c_r_c7">
                <ul>
                    <li><span class="font14 font-weight gray_t">折算标准：</span><br />
                        1、仅限拥有双市场L2行情的用户折算<br />
                        2、您可以将剩余的到期日按照0.5的比例来折算成同时到期<br />
                        3、仅限主力版正式用户
                        <br />
                        <span class="red">例：原沪市到期日为2011-10-01，深市到期日为2010-12-1， 折算后双市到期日统一为：2011-05-01。 </span>
                        <br />
                        <br />
                        </li>
                    <li class="line"></li>
                    <li><span class="font14 font-weight gray_t">用户名：</span><asp:Label ID="lblUser" runat="server"
                        Text="Label"></asp:Label></li>
                </ul>
            </div>
        </div>
    </div>
    <div id="success" title="您软件的到期日信息">
        <div id="successMsg" style="text-align: center; margin-top: 10px">
        </div>
    </div>
    <div id="fail" title="您不符合折算条件">
        <div id="failMsg" style="text-align: center; margin-top: 10px; color: Red">
            <%--您的沪市和深市L2行情已经是同一天到期的--%><br />
            <%--不符合折算条件，无法折算--%>
        </div>
    </div>
    <div id="loginFram" style="position: absolute;  top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="UserLogin.aspx" width="292px" height="242px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
     <div id="qkFram" style="position: absolute; top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="qkcl.aspx" width="265" height="170px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <div id="dogFram" style="position: absolute; top: 240px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="dog.aspx" width="243px" height="158px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <br />
    <uc2:footer ID="footer1" runat="server" />
    </form>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        //yyyy-MM-dd的正则表达式
        var tt = /^(((((0[48]00)|(0[1-9]((0[48])|([2468][048])|([13579][26]))))-02-29)|((0[1-9][0-9][0-9])-((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30))|(((0[1-9])|(1[0-2]))-((0[1-9])|(1[0-9])|(2[0-8])))))))|((((((([13579][26])|([2468][048]))00)|([1-9][0-9]((0[48])|([13579][26])|([2468][048]))))-02-29)|(([1-9][0-9][0-9][0-9])-((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30))|(((0[1-9])|(1[0-2]))-((0[1-9])|(1[0-9])|(2[0-8])))))))|((((00((0[48])|([2468][048])|([13579][26])))-02-29)|((00((0[1-9])|([1-9][0-9])))-((((0[13578])|(1[02]))-31)|(((0[1,3-9])|(1[0-2]))-(29|30))|(((0[1-9])|(1[0-2]))-((0[1-9])|(1[0-9])|(2[0-8])))))))$ /

        var name = "";
        var pwd = "";
        $(document).ready(function () {
            var name1 = $('#hidName').val();
            if (name1 == '') {
                $('#login').html("您好，请登录<a href=\"#\"><img src=\"images/btn_login.jpg\" border=\"0\" /></a>");
                $('#qkcl').removeAttr("onclick");
            } else {
                $('#login').html("欢迎您，<br/>" + name1 + "用户<br/><a href=\"OutLogin.aspx\" onclick=\"return confirm('确定退出？')\"><img src=\"images/btn_exit.jpg\" border=\"0\" /></a>");
                $('#qkcl').bind({
                    click: function () {
                        document.getElementById("qkFram").style.display = "block";
                    }
                });
                $('#opendog').bind({
                    click: function () {
                        document.getElementById("dogFram").style.display = "block";
                    }
                });
            }
            $('[att=ulogin] a,').click(function () {
                var uname = $('#hidName').val();
                if (uname == '') {
                    document.getElementById("loginFram").style.display = "block";
                    return false;
                }
            });
            $("#fail").dialog({
                autoOpen: false,
                modal: true,
                width: 600,
                buttons: {
                    "取消": function () {
                        $(this).dialog("close");
                    }
                }
            }
                )

            $("#success").dialog({
                autoOpen: false,
                modal: true,
                width: 600,
                buttons: {
                    "不需要折算": function () {
                        $(this).dialog("close");
                    },
                    "确定，我要折算": function () {
                        $.post("Handler/convert.ashx", { name: $('#hidName').val(), pwd: $('#hidPwd').val() }, function (data) {
                            $("#success").dialog("close");
                            alert(data);
                        }
                            )
                    }
                }
            }
                )
            //我要折算
            var name1 = $('#hidName').val();
            var pwd1 = $('#hidPwd').val();
            if (name1 != '' && pwd1 != '') {
                $.post("Handler/EndDate.ashx", { name: name1, pwd: pwd1 }, function (data) {
                    $("#successMsg").html(data);
                    $("#success").dialog("open");
                    return;
                })
                return false;
            }
        });
    </script>
</body>
</html>
